package org.chen.common.model.travel;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("fy_store_order_travel_info")
@Schema(name = "StoreTravelOrderInfo对象", description="订单购物详情表（旅游）")
public class StoreTravelOrderInfo {

    @Schema(description = "id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Integer id;

    @Schema(description = "订单id")
    private Long orderId;

    @Schema(description = "商品ID")
    private Integer productId;

    @Schema(description = "购买东西的详细信息")
    private String info;

    @Schema(description = "唯一id")
    @TableField(value = "`unique`")
    private String unique;

    @Schema(description = "订单号")
    private String orderNo;

    @Schema(description = "商品名称")
    private String productName;

    @Schema(description = "商品图片")
    private String image;

    @Schema(description = "单价")
    private BigDecimal price;

    @Schema(description = "总价")
    private BigDecimal allPrice;

    @Schema(description = "购买数量")
    private Integer payNum;

    @Schema(description = "是否评价")
    private Boolean isReply;

    @Schema(description = "商品类型:0-普通")
    private Integer productType = 0;
}
